package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.LoanClearDO;
import com.mhc.suzuki.dal.query.LoanClearQuery;

import java.util.List;


/**
 * Manager for LoanClear.
 */
public interface LoanClearManager {
    /**
     * query count by query condition.
     */
    int countByQuery(LoanClearQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(LoanClearQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(LoanClearDO record);

    /**
     * insert selective.
     */
    long insertSelective(LoanClearDO record);

    /**
     * select by query condition.
     */
    List<LoanClearDO> selectByQuery(LoanClearQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<LoanClearDO> selectByQueryWithPage(LoanClearQuery query);

    /**
     * select by primary key.
     */
    LoanClearDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( LoanClearDO record,  LoanClearQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(LoanClearDO record, LoanClearQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(LoanClearDO record);
}